
package tbdp.tool.common;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.io.Serializable;

/**
 * @author xbkaishui
 * @version $Id: ToString.java, v 0.1 2017-06-17 下午3:53 xbkaishui Exp $$
 */
public class ToString implements Serializable {
    private static final long serialVersionUID = 5550757941254765800L;

    /** 左括号 */
    protected static final String LEFT_PARENTHESIS = "(";

    /** 右括号 */
    protected static final String RIGHT_PARENTHESIS = ")";

    /** 分隔符-逗号 */
    protected static final String COMMA_SEPARATOR = ",";

    /**
     * toString方法重写
     *
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }

}